package alp.starcode.nudtportal.framework.constant;

public enum LoginTypeEnum {
    WECHAT("weChat", "微信小程序"),
    ALIPAY("alipay", "支付宝小程序");

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    String type;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    String key;

    LoginTypeEnum(String key, String type) {
        this.key = key;
        this.type = type;
    }

    public static String getTypeByKey(String key) {
        LoginTypeEnum[] loginTypeEnums = values();
        LoginTypeEnum[] var6 = loginTypeEnums;
        int var5 = loginTypeEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            LoginTypeEnum loginTypeEnum = var6[var4];
            if (key.equals(loginTypeEnum.key)) {
                return loginTypeEnum.type;
            }
        }
        return null;
    }
}
